/*
 * @Descripttion:
 * @version: 电子名片2.0
 * @Author: 冯健
 * @Date: 2020-11-24 11:23:27
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-11-13 11:30:31
 */
export const listHedar = [
  { label: '幻灯片编号', prop: 'slideId' },
  { label: '幻灯片标题', prop: 'slideTitle' },
  { label: '幻灯片图片', prop: 'slideImage', isTemplate: true },
  { label: '幻灯片位置', prop: 'slideLocation', isTemplate: true },
  { label: '排序权重', prop: 'slideOrder' },
  { label: '状态', prop: 'authStatus', isTemplate: true },
  { label: '修改人', prop: 'modifierName' },
  { label: '修改时间', prop: 'gmtModified' },
  { label: '操作', prop: 'operate', isTemplate: true, fixed: 'right' }
]

const auths = [
  { value: '0', title: '客户端' },
  { value: '1', title: '企业端' }
]
const stutas = [
  { value: '0', title: '未上架' },
  { value: '1', title: '已上架' },
  { value: '2', title: '已下架' }
]
export const searchs = [
  { type: 'input', key: 'keyword', value: '', placeholder: '幻灯片编号、幻灯片名称' },
  { type: 'select', key: 'slideType', value: '', selectList: auths, placeholder: '位置' },
  { type: 'select', key: 'authStatus', value: '', selectList: stutas, placeholder: '状态' }
]

export const editList = [
  { type: 'input', key: 'slideTitle', label: ' 幻灯片标题', placeholder: '请输入' },
  {
    type: 'link',
    key: 'slideType',
    key1: 'slideLocation',
    label: ' 幻灯片位置',
    placeholder: '请选择',
    options: [
      { label: '用户端', value: '0' },
      { label: '企业端', value: '1' }
    ],
    options0: [
      { label: '发现', value: '1' },
      { label: '引导页', value: '2' }
    ],
    options1: []
  },
  { type: 'upload', key: 'slideImage', label: ' 幻灯片图片' },
  { type: 'slot', key: 'jumpType', name: 'linkType', label: ' 跳转类型' },
  { type: 'input', key: 'slideOrder', label: ' 排序权重', placeholder: '请输入' }
]

export const rules = {
  slideTitle: { required: true, message: '请输入幻灯片标题' },
  slideType: { required: true, message: '请选择幻灯片类型' },
  internalType: { required: true, message: '请选择内部跳转类型' },
  slideImage: { required: true, message: '上传幻灯片图片' },
  slideOrder: { required: true, message: '请输入排序' },
  jumpType: { required: true, message: '请选择跳转类型' }
}

